Skip to content

BatBot initial testing and integration#305

Merged
BryonLewis merged 28 commits intomainfrom
batbot-integration
Feb 4, 2026
Merged

BatBot initial testing and integration#305
BryonLewis merged 28 commits intomainfrom
batbot-integration

Conversation

@BryonLewis
Copy link
Collaborator

@BryonLewis BryonLewis commented Jan 16, 2026

resolves #304

  • Adding batbot as a dependency
    • For right now it is using github until they publish a pypi version of batbot
  • Test UV script for running and looking at metadata inside of ./scripts/batbot/
    • Also added a introductory script for contours in ./scripts/contours
  • Created the ./batai/core/utils/batbot_metadata.py file to manage batbot and the resulting data
    • This contains some types from batbot to make it easier to develop with
    • Also the main function is generate_spectrogram_assets meant to be a drop-in replacement for the older generate_spectrogram_assets but this one may contain additional information in the future (contours + curves and knee, heel, toe points)
  • Altered all annotations to be Floats instead of Integers for more accuracy (also batbot will return more accurate numbers than ints for the millisecond timing)
  • Client Side
    • Added in the TransparencyFilter (Noise Filter) to the interface
      • These spectrograms are bit noisier so I figured I would add this in to be able to filter the noise out.

@BryonLewis BryonLewis changed the title initial testing and integration BatBot initial testing and integration Jan 18, 2026
@BryonLewis BryonLewis requested a review from naglepuff January 30, 2026 14:00
@BryonLewis BryonLewis marked this pull request as ready for review January 30, 2026 14:01
Copy link
Collaborator

@naglepuff naglepuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks pretty good, excited to get this integration done. I had some feedback, but nothing too major.

@BryonLewis BryonLewis requested a review from naglepuff February 3, 2026 13:28
@BryonLewis
Copy link
Collaborator Author

Part of this was merging main into it. The migrations indicate that client redirect url should be port 8080 so I updated the client generation and dev environment to use port 8080.

I added in my updated loadGRTS script in case sciencebase.gov goes down again during development

The scripts folder is really meant to be more a development scripts folder. So I have stuff in there that is useful for testing. That's why you'll see duplicated stuff because it's easier for me to modify there instead across multiple files. That folder is what I'm using to go from the batbot spectrogram creation, to the eventual adding of contours in the next PR and then the exporting of the data required for drawing the metadata lines in the final PR.

Copy link
Collaborator

@naglepuff naglepuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to do some functional testing. I had some follow-up questions about the dependencies though, that might be worth taking another look at.

@naglepuff
Copy link
Collaborator

Totally optional - any thoughts on maybe setting a higher zoom level at initial load?

image

The vertical space doesn't seem to be used too well until increasing zoom a bit.

@naglepuff
Copy link
Collaborator

I pushed 409f852 to update the redirect URL in one additional place.

Copy link
Collaborator

@naglepuff naglepuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left one additional suggestion but that's non-blocking. Let's get this into main

@BryonLewis BryonLewis merged commit 22f03b9 into main Feb 4, 2026
5 checks passed
@BryonLewis BryonLewis deleted the batbot-integration branch February 4, 2026 13:57
@BryonLewis BryonLewis mentioned this pull request Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BatBot] Replace spectrogram integration with BatBot

2 participants

Comments